var mongoose = require('mongoose');


var schema = mongoose.Schema({
	  ig:{type:String,ref:"ingredients"},
	  price:{ type: Number, default: 0 },
	  unit:{type: String, default: "斤"},
	  time:Date,
	  pid:String,//进货id
	  name:String
});

var IngBuyRecord=mongoose.model('ingbuyrecords', schema)

module.exports = IngBuyRecord;